<%@ taglib prefix="s" uri="/struts-tags" %>
<%--
  Created by IntelliJ IDEA.
  User: amin
  Date: 2015/4/8
  Time: 10:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<div class="modal-body">
    <form class="form-horizontal" action="" method="post">
        <fieldset>

            <s:if test="type=='prosign'">
                <legend><i class='fa fa-fw fa-lg fa-user'></i>签到人(<s:property value="proSignIn.creater.name"/> )<i class='fa fa-fw fa-lg fa-clock-o'></i>签到时间:<s:date name='proSignIn.createDate' format='yyyy-MM-dd HH:mm'/></legend>
                <p style='margin:0;line-height:1.5;font-size:15px;text-indent:2em'> 项目名称：<blue> <s:property value="proSignIn.proInfo.name"/></blue></p>
                <p style='margin:0;line-height:1.5;font-size:15px;text-indent:2em'> 所在地区：<blue> <s:property value="proArea"/></blue></p>
                <p style='margin:0;line-height:1.5;font-size:15px;text-indent:2em'> 项目地址：<blue> <s:property  value="proSignIn.proInfo.address"/></blue></p>
                <p style='margin:0;line-height:1.5;font-size:15px;text-indent:2em'> 签到地址：<blue> <s:property value="address"/></blue></p>
                <p style='margin:0;line-height:1.5;font-size:15px;text-indent:2em'> 考勤状态：<blue> <s:if test="proSignIn.status==1">正常</s:if><s:else>迟到</s:else> </blue></p>

                <div class="form-group">
                    <label class="col-md-3 control-label"></label>
                    <div class="col-md-9" style="margin-top: 6px;">
                        <a style="text-decoration:none;cursor: pointer" key="ajax_tasks_dialog" href='#ajax-pro-signin!read.action?keyId=<s:property value="proSignIn.id"/>'>  <span class='label  label-warning'>进入签到页面 </span> </a>
                    </div>
                </div>
            </s:if>

            <s:else>
                <legend><i class='fa fa-fw fa-lg fa-user'></i>请假人(<s:property value="proLeave.creater.name"/> )<i class='fa fa-fw fa-lg fa-clock-o'></i>请假时间:<s:date name='proLeave.leaveDate' format='yyyy-MM-dd HH:mm'/></legend>
                <p style='margin:0;line-height:1.5;font-size:15px;text-indent:2em'> 项目名称：<blue> <s:property value="proLeave.proInfo.name"/></blue></p>
                <p style='margin:0;line-height:1.5;font-size:15px;text-indent:2em'> 项目地址：<blue> <s:property  value="proLeave.proInfo.address"/></blue></p>
                <p style='margin:0;line-height:1.5;font-size:15px;text-indent:2em'> 请假事由：<blue> <s:property  value="proLeave.reason"/></blue></p>

                <%--<div class="form-group">--%>
                    <%--<label class="col-md-3 control-label"></label>--%>
                    <%--<div class="col-md-9" style="margin-top: 6px;">--%>
                        <%--<a style="text-decoration:none;cursor: pointer" key="ajax_tasks_dialog" href='#ajax-pro-leave!read.action?keyId=<s:property value="proLeave.id"/>'>  <span class='label  label-warning'>进入请假页面 </span> </a>--%>
                    <%--</div>--%>
                <%--</div>--%>
            </s:else>


        </fieldset>
    </form>
</div>

<script>
    $("a[key='ajax_tasks_dialog']").click(function(){
        gDialog.fClose();
    });
</script>
